package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.adm;


import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.Knowledge;

import java.util.List;

public interface KnowledgeMapper {
    /**
     * 新增知识库
     * @param record
     * @return
     */
    int insertSelective(Knowledge record);

    /**
     * 根据id查询知识库信息
     * @param knowledgeId
     * @return
     */
    Knowledge selectByPrimaryKey(String knowledgeId);

    /**
     * 更新知识库
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Knowledge record);

    /**
     * 删除知识库
     * @param knowledgeIds
     * @return
     */
    int deleteByPrimaryKey(String[] knowledgeIds);

    /**
     * 查询数量
     * @param record
     * @return
     */
    int queryCount(Knowledge record);

    /**
     * 查询列表
     * @param knowledge
     * @return
     */
    List<Knowledge> queryList(Knowledge knowledge);
}